<!DOCTYPE html>
<html>

<head>
    <meta name="layout" content="main2"/>
    <g:set var="entityName" value="${message(code: 'workflowInstanceStage.label', default: 'workflowInstanceStage')}"/>
    <title>新增工作流阶段</title>
</head>

<body>

<div class="main-body">
    <div class="page-wrapper">
        <!-- Page-header start -->
        <div class="page-header">
            <div class="page-header-title">
                <h4>新增工作流阶段</h4>
            </div>

            <div class="page-header-breadcrumb">
                <ul class="breadcrumb-title">
                    <li class="breadcrumb-item">
                        <a href="/salesDashboard/index">
                            <i class="icofont icofont-home"></i>
                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <g:link controller="workflowInstance" action="show" id="${this.workflowInstanceStage?.instance?.id}">工作流</g:link>

                    </li>
                    <li class="breadcrumb-item"><a href="#!">新增工作流阶段</a>
                    </li>
                </ul>
            </div>
        </div>
        <!-- Page-header end -->
        <!-- Page-body start -->
        <div class="page-body">
            <g:if test="${flash.message}">
                <div class="message alert alert-info" role="status">${flash.message}
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
                            aria-hidden="true">×</span></button>
                </div>
            </g:if>
            <g:hasErrors bean="${this.workflowInstanceStage}">
                <ul class="errors" role="alert">
                    <g:eachError bean="${this.workflowInstanceStage}" var="error">
                        <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>>
                            <g:message error="${error}"/>
                        </li>
                    </g:eachError>
                </ul>
            </g:hasErrors>
        <!-- Hover table card start -->
            <div class="card">
                <div class="card-header">
                    <h5>反馈优先级</h5>

                    <div class="card-header-right">

                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>

                <div class="card-block">
                    <g:form action="save">

                        <div class="form-group row">
                            <g:textField name="instance.id" required="required" id="instance"
                                         value="${this.workflowInstanceStage?.instance?.id}" class="hide"/>

                            <label class="col-md-3 control-label is-required">名称</label>

                            <div class="col-md-4">
                                <g:textField name="name"
                                             value="${this.workflowInstanceStage?.name}"
                                             class="form-control"/>
                            </div>

                        </div>


                        <div class="form-group row">
                            <label class="col-md-3 control-label is-required"">执行次序</label>

                            <div class="col-md-4">
                                <g:textField name="executionSequence"
                                             value="${this.workflowInstanceStage?.executionSequence}"
                                             class="form-control"/>
                            </div>
                        </div>


                        <div class="form-group row">

                            <label class="col-md-3 control-label">能否退回</label>
                            <div class="col-md-4 border-checkbox-section">
                                <div class="border-checkbox-group border-checkbox-group-primary form-control-static">
                                    <g:checkBox class="border-checkbox" name="canReject" id="checkbox0"
                                                value="${this.workflowInstanceStage?.canReject}"/>
                                    <label class="border-checkbox-label" for="checkbox0"></label>
                                </div>

                            </div>

                        </div>



                        <div class="form-group row">
                            <div class="col-md-12">
                                <g:submitButton class="btn btn-info" id="btn" name="update" value="保存"/>
                            </div>
                        </div>
                    </g:form>

                </div>
            </div>
            <!-- Hover table card end -->
        </div>

        <!-- Page-body end -->

    </div>
</div>

</body>

</html>
